﻿@{
    ViewBag.Title = "Autenticación del sistema";
}

<script type="text/javascript">
    function Acceder() {
        document.getElementById('ButtonClick').value = "Acceder";
        document.forms['Formulario'].submit();
    }
    function Volver() {
        document.getElementById('ButtonClick').value = "Volver";
        document.forms['Formulario'].submit();
    }
</script>

@using (Html.BeginForm(null, null, FormMethod.Post, new { id = "Formulario" })) 
{
    <center>
        <table border="0">
            <tr>
                <td>
                    Usuario
                </td>
                <td>
                    @Html.TextBox("Usuario")
                </td>
            </tr>
            <tr>
                <td>
                    Contraseña
                </td>
                <td>
                    @Html.Password("Clave")
                </td>
            </tr>
        </table>
        <br />
        <input type="button" value="Acceder" onclick="Acceder()" />
        <input type="button" value="Volver" onclick="Volver()" />
    </center>
    <input type="hidden" id="ButtonClick" name="ButtonClick" />
}